package com.example.demohystrixfeignconsumer;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class MyFeignClient {

    @Autowired
    private com.example.demohystrixfeignconsumer.DemoHystrixFeignConsumerApplication.UserloginService userLoginService;

    @HystrixCommand()
    @RequestMapping(value="/ulogin",produces = "application/json;charset=UTF-8")
    public Map userlogin() {
        return userLoginService.myUserlogin();
    }


}

